<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <link href="/asset/css/style.css" rel="stylesheet">
    <link href="/asset/css/style-responsive.css" rel="stylesheet">
    <script src="/asset/js/jquery-1.10.2.min.js"></script>
</head>
<body>
<div id="login">
    <form id="login_tab" action="/Home/Login/login" method="post">
        <table class="form_table">
            <tr><td style="width: 60px"><span>用户名：</span></td><td><input class="sy-form" type="text" name="name"/></td>
            <tr><td><span>密　码：</span></td><td><input class="sy-form" type="password" name="password"/></td>
            <tr><td><span>验证码：</span></td><td><input class="sy-form img_code" type="text" name="img_code"/><img src="/Home/Login/imgCode" id="login_img_code" class="change_img"></td>
            <tr><td colspan="2"><input type="submit" class="btn btn-blue btn_login" value="登录"/></td></tr>
        </table>
    </form>
</div>

    <script>
        $(function(){
            $('.change_img').click(function(){
                $("#login_img_code").attr('src','/Home/Login/imgCode?q='+Math.random())
            })
        })
    </script>
</body>
</html>